<?php

class Cliente extends BaseCliente
{
  public function __toString()
  {
    return $this->getNombre();
  }
  
    public function getTabla()
	{
		$con = Propel::getConnection();
		$stmt = $con->prepare("SELECT id, nombre FROM cliente ");
		$stmt->execute();
		$tabla="";
		while($fila = $stmt->fetch()) 
		{		
			$tabla.="<option value=\"".$fila['id']."\">".$fila['nombre']."</option>";
		} 	
		return $tabla;
	}
}
